package com.link.base.base.performance.dao.mybatis.mapper;

import com.link.base.base.performance.model.ScoringDetails;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * 考核打分明细
 *
 * @author 王昊
 * @date 2020-08-31 17:40:08
 */
public interface ScoringDetailsMapper extends BasicMapper<ScoringDetails> {

    /**
     * 根据当前行记录的绩效考核id查询该大类的所有考核指标
     * @param scor
     * @return
     */
    List<ScoringDetails> queryByPerfomanceId(ScoringDetails scor);

    /**
     * 根据绩效考核id级联删除自评记录
     * @param sco
     */
    void deleteByPerfoId(ScoringDetails sco);
}
